#!/usr/bin/env python

import sys
import email.utils
import distutils.util
from setuptools import setup, find_packages

# package metadata
__package__ = 'librungame'
__version__ = '0.0.1'
__author__ = 'Fpemud <fpemud@sina.com>'

# check linux platform
platform = distutils.util.get_platform()
if not platform.startswith('linux'):
    sys.stderr.write("This module is not available on %s\n" % platform)
    sys.exit(1)

# Do setup
setup(
    name=__package__,
    version=__version__,
    description="Some miscellaneous processing for running games.",
    author=email.utils.parseaddr(__author__)[0],
    author_email=email.utils.parseaddr(__author__)[1],
    url='https://github.com/your-own-os/librungame',
    license='GNU General Public License (GPL)',
    platforms=['Linux'],
    classifiers=[
        'Development Status :: 5 - Production/Stable',
        'License :: OSI Approved :: GNU General Public License v3 (GPLv3)',
        'Intended Audience :: Developers',
        'Natural Language :: English',
        'Operating System :: POSIX :: Linux',
        'Programming Language :: Python',
        'Programming Language :: Python :: 3',
        'Topic :: Software Development :: Libraries :: Python Modules',
        ],
    packages=[
        'librungame',
        'librungame.game',
        'librungame.game.dos',
        'librungame.game.linux',
        'librungame.game.windows',
        'librungame.game.windows._limbo',
        'librungame.game.windows._neighbours_from_hell',
        'librungame.runner',
        'librungame.tuner',
        'librungame.util',
    ],
    package_dir={
        'librungame': './src',
        'librungame.game': './src/game',
        'librungame.game.dos': './src/game/dos',
        'librungame.game.linux': './src/game/linux',
        'librungame.game.windows': './src/game/windows',
        'librungame.game.windows._limbo': './src/game/windows/_limbo',
        'librungame.game.windows._neighbours_from_hell': './src/game/windows/_neighbours_from_hell',
        'librungame.runner': './src/runner',
        'librungame.tuner': './src/tuner',
        'librungame.util': './src/util',
    },
    package_data={
        'librungame.game.windows._limbo': ['*'],
        'librungame.game.windows._neighbours_from_hell': ['*'],
    },
)
